AECoerceDesc
AECoerceDesc
Coerce data in descriptor record to descriptor type AEDesc * theAEDesc ; descriptor record of data to be coerced DescType toType ; pointer to descriptor type another descriptor type.
The parameter theAEDesc is the descriptor record whose data is to be coerced.
The toType parameter is the desired descriptor type of the resulting descriptor record.
descriptor record. This function creates a new descriptor record by copying
the descriptor record from the input parameter. Your application is
responsible for using the AEDisposeDesc function to dispose of the resulting descriptor record once you are finished using it.
If the function returns a nonzero result code, a descriptor record with the
typeNull descriptor type is returned. A descriptor record of this type does not
contain any data.
Note: To avoid infinite recursion, AECoerceDesc must never be called by an application-supplied coercion routine.
Result codes
noErr (0) No error
Notes: Although you do need to allocate space for the AEDesc record that you pass to create a descriptor record for the result parameter. The descriptor record.
Your application is responsible for disposing of both the input
descriptor record, theAEDesc and the resulting descriptor record, result when your application is responsible for disposing of Apple event data
structures.